package com.xjnt.base.support.admin.controller;

import java.util.Set;

import com.alibaba.druid.pool.DruidDataSource;
import com.alibaba.druid.stat.DruidDataSourceStatManager;
import com.xjnt.frameworks.annotation.Router;
import com.xjnt.frameworks.core.BaseController;

@Router(name="/system/monitor/druid", view="admin/druid")
public class DruidController extends BaseController{
	
	public void index() {
		Set<DruidDataSource> dataSources = DruidDataSourceStatManager.getDruidDataSourceInstances();
		setAttr("dataSources", dataSources);
		render("index.html");
	}
}
